import { } from '@/api/audit/index';

const state = () => {
    return {
        list: []
    }
}


const mutations = {
    // 获取50道试题
    SET_LIST(state, form) {
        state.list = form
    }
}

const actions = {
    // 获取数据
    async getQuestionsList({ commit }) {
        let { data } = await this.$axios.get("/exam/rand-list")
        commit("SET_LIST", data.data)
    }
}

const getters = {

}

export {
    state,
    mutations,
    actions,
    getters
}